import os

output = os.system('cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys')
print("cp authorized_keys finished a", output)

output = os.system('sudo /usr/sbin/sshd -D &')
print("sudo /usr/sbin/sshd -Ds finished a", output)

output = os.system('sudo chown -R ma-user:ma-group /usr/local/lib/pdsh')
print("sudo chown -R ma-user:ma-group /usr/local/lib/pdsh a", output)

output = os.system('sudo chown -R ma-user:ma-group /usr/local/bin')
print("sudo chown -R ma-user:ma-group /usr/local/bin", output)


output = os.system('mv /home/ma-user/modelarts/inputs/weight_path_0 /home/ma-user/modelarts/inputs/vicuna-7b')
print("mv /home/ma-user/modelarts/inputs/weight_path_0 /home/ma-user/modelarts/inputs/vicuna-7b", output)

